<#include "./base-page.ftl">
<#include "../common/nav-bar.ftl">
<#include "../common/side_bar.ftl">

<#macro page_body
    page_title
    side_active
    site_bar_enable=true
    site_logo='/static/img/img_site_logo2.png'
    site_home='/user'>
    <@site_body>
    <div class="be-wrapper <#if site_bar_enable>be-fixed-sidebar</#if>">
        <@nav_bar page_title="${page_title}"
            site_logo='${site_logo}'
            site_home='${site_home}'>
        </@nav_bar>
        <#if site_bar_enable>
            <@side_bar active=side_active>
            </@side_bar>
        </#if>
        <div class="<#if site_bar_enable>be-content</#if>">
            <#nested>
        </div>
    </div>
    </@site_body>
</#macro>

<#macro page_head>
    <@site_head title="省钱买-后台管理系统">
    <link rel="stylesheet" type="text/css" href="/static/lib/material-design-icons/css/material-design-iconic-font.min.css"/>
    <link rel="stylesheet" type="text/css" href="/static/lib/perfect-scrollbar/css/perfect-scrollbar.min.css?v=${sysUtil.now()}"/>
        <link rel="stylesheet" type="text/css" href="/static/node_modules/gritter/css/jquery.gritter.css?v=${sysUtil.now()}">
        <#nested />
    <link rel="stylesheet" href="/static/css/app.css?v=${sysUtil.now()}" type="text/css">
    <link rel="stylesheet" href="/static/css/extra.css?v=${sysUtil.now()}" type="text/css">
    </@site_head>
</#macro>

<#macro page_foot site_bar_enable=true>
    <@site_foot>
        <#if site_bar_enable>
        <script src="/static/lib/perfect-scrollbar/js/perfect-scrollbar.min.js?v=${sysUtil.now()}" type="text/javascript"></script>
        </#if>
        <script src="/static/lib/jquery/jquery.min.js?v=${sysUtil.now()}" type="text/javascript"></script>
        <script src="/static/lib/bootstrap/dist/js/bootstrap.bundle.min.js" type="text/javascript"></script>
        <script src="/static/node_modules/gritter/js/jquery.gritter.js?v=${sysUtil.now()}"></script>
        <script src="/static/js/app.js?v=?v=${sysUtil.now()}" type="text/javascript"></script>
        <script src="/static/js/extra.js?v=?v=${sysUtil.now()}" type="text/javascript"></script>
        <#nested />
    </@site_foot>
</#macro>